{include file="public/header" /}
<body>
<div class="x-body layui-anim" style="padding-top: 0">
    <form action="{:url('business/save')}" class="layui-form" id="form">
        <input type="hidden" name="id" value="{$info.id}"/>
        <div class="layui-tab layui-tab-brief">
            <ul class="layui-tab-title">
                <li class="layui-this">基本信息</li>
                <li>营业执照</li>
                <li>银行信息</li>
            </ul>
            <div class="layui-tab-content" style="height: 100px;">
                <div class="layui-tab-item layui-show">
                    <div class="layui-row">
                        <div class="layui-col-xs8">
                            <div class="layui-form-item">
                                <label class="layui-form-label label-required">店铺类型</label>
                                <div class="layui-input-block">
                                    <input type="text" value="{$info.type == 1?'线上':'线下'}"
                                           class="layui-input" disabled="">
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="layui-row">
                        <div class="layui-col-xs8">
                            <div class="layui-form-item">
                                <label class="layui-form-label label-required">申请会员</label>
                                <div class="layui-input-block">
                                    <input type="text" value="{$info.user.nickname} - {$info.user.code}"
                                           class="layui-input" disabled="">
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="layui-row">
                        <div class="layui-col-xs8">
                            <div class="layui-form-item">
                                <label class="layui-form-label label-required">店铺名称</label>
                                <div class="layui-input-block">
                                    <input type="text" value="{$info.title}" class="layui-input" name="title">
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="layui-row">
                        <div class="layui-col-xs8">
                            <div class="layui-form-item">
                                <label class="layui-form-label label-required">店铺Logo</label>
                                <div class="layui-input-block">
                                    <div class="layui-tab-item layui-show" style="width: 220px;">
                                        <div class="layui-upload-drag uploadImage" style="padding: 10px">
                                            <i class="layui-icon"></i>
                                            <p>点击或将文件拖拽到此处</p>
                                            <div>
                                                <hr>
                                                <img src="{$info.logo}" class="layui-upload-img showImage" alt="上传成功后渲染"
                                                     style="max-width: 70%">
                                                <input type="hidden" name="logo" value="{$info.logo}" class="inpImage"/>
                                            </div>
                                        </div>
                                        <input class="layui-upload-file" type="file" accept="" name="file">
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="layui-row">
                        <div class="layui-col-xs8">
                            <div class="layui-form-item">
                                <label class="layui-form-label label-required">店铺封面</label>
                                <div class="layui-input-block">
                                    <div class="layui-tab-item layui-show" style="width: 220px;">
                                        <div class="layui-upload-drag uploadImage" style="padding: 10px">
                                            <i class="layui-icon"></i>
                                            <p>点击或将文件拖拽到此处</p>
                                            <div>
                                                <hr>
                                                <img src="{$info.cover}" class="layui-upload-img showImage" alt="上传成功后渲染"
                                                     style="max-width: 70%">
                                                <input type="hidden" name="cover" value="{$info.cover}" class="inpImage"/>
                                            </div>
                                        </div>
                                        <input class="layui-upload-file" type="file" accept="" name="file">
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="layui-row">
                        <div class="layui-col-xs8">
                            <div class="layui-form-item">
                                <label class="layui-form-label label-required">联系人</label>
                                <div class="layui-input-block">
                                    <input type="text" value="{$info.contacts}" class="layui-input" name="contacts">
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="layui-row">
                        <div class="layui-col-xs8">
                            <div class="layui-form-item">
                                <label class="layui-form-label label-required">手机号</label>
                                <div class="layui-input-block">
                                    <input type="text" value="{$info.mobile}" class="layui-input" name="mobile">
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="layui-row">
                        <div class="layui-col-xs8">
                            <div class="layui-form-item">
                                <label class="layui-form-label label-required">客服电话</label>
                                <div class="layui-input-block">
                                    <input type="text" value="{$info.customer_tel}" class="layui-input"
                                           name="customer_tel" placeholder="未填写">
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="layui-row">
                        <div class="layui-col-xs8">
                            <div class="layui-form-item">
                                <label class="layui-form-label">店铺地区</label>
                                <div class="layui-inline sunSelect" data-url="{:url('order/getArea')}" data-value="code" data-name="title">
                                    <div class="layui-input-inline">
                                        <select name="province_id" data-name="省" data-level="1" data-id="{$info.province_id}" lay-filter="sunSelect"></select>
                                    </div>
                                    <div class="layui-input-inline">
                                        <select name="city_id" data-name="市" data-level="2" data-id="{$info.city_id}" lay-filter="sunSelect"></select>
                                    </div>
                                    <div class="layui-input-inline">
                                        <select name="district_id" data-name="区/县" data-level="3" data-id="{$info.district_id}" lay-filter="sunSelect"></select>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="layui-row">
                        <div class="layui-col-xs8">
                            <div class="layui-form-item">
                                <label class="layui-form-label label-required">详细地址</label>
                                <div class="layui-input-block">
                                    <input type="text" value="{$info.address_details}" class="layui-input" name="address_details">
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="layui-row">
                        <div class="layui-col-xs8">
                            <div class="layui-form-item">
                                <label class="layui-form-label">退货地址</label>
                                <div class="layui-inline sunSelect" data-url="{:url('order/getArea')}" data-value="code" data-name="title">
                                    <div class="layui-input-inline">
                                        <select name="return_province_id" data-name="省" data-level="1" data-id="{$info.return_province_id}" lay-filter="sunSelect"></select>
                                    </div>
                                    <div class="layui-input-inline">
                                        <select name="return_city_id" data-name="市" data-level="2" data-id="{$info.return_city_id}" lay-filter="sunSelect"></select>
                                    </div>
                                    <div class="layui-input-inline">
                                        <select name="return_district_id" data-name="区/县" data-level="3" data-id="{$info.return_district_id}" lay-filter="sunSelect"></select>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="layui-row">
                        <div class="layui-col-xs8">
                            <div class="layui-form-item">
                                <label class="layui-form-label label-required">退货详细地址</label>
                                <div class="layui-input-block">
                                    <input type="text" value="{$info.return_address_details}" class="layui-input" name="return_address_details">
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="layui-row">
                        <div class="layui-col-xs8">
                            <div class="layui-form-item">
                                <label class="layui-form-label label-required">入驻时间</label>
                                <div class="layui-input-block">
                                    <input type="text" value="{$info.create_time}" class="layui-input" disabled="">
                                </div>
                            </div>
                        </div>
                    </div>

                </div>
                <div class="layui-tab-item">
                    <div class="layui-form-item " style="display: flex;">
                        <div>
                            <label class="layui-form-label">营业执照</label>
                            <div class="layui-input-block">
                                <input class="layui-upload-file" type="file" name="file">
                            </div>
                        </div>
                        <div class="uploadsPrev">
                            <ul class="layui-upload-list uploadsBtn" imgClass="randUploadImage" inpName="license[]">
                                <li class="w_imgCon">
                                    <img src="/static/admin/images/upload_img.svg">
                                </li>
                            </ul>
                            <ul class="layui-upload-list showImages">
                                {if isset($info)}
                                {foreach name="$info.license" id="v"}
                                <li class="flex-li">
                                    <a href="{$v}" target="_blank"><img class="flex-img" src="{$v}"></a>
                                    <img class="uploadDels" src="/static/admin/images/marketing_delpic.png">
                                    <input type="hidden" name="license[]" value="{$v}" class="uploadInps"/>
                                </li>
                                {/foreach}
                                {/if}
                            </ul>
                        </div>
                    </div>

                </div>
                <div class="layui-tab-item">
                    <div class="layui-row">
                        <div class="layui-col-xs8">
                            <div class="layui-form-item">
                                <label class="layui-form-label">银行名称</label>
                                <div class="layui-input-block">
                                    <select name="bank_name" lay-verify="required">
                                        {foreach name="bank" item="vo"}
                                        <option value="{$vo.title}">{$vo.title}</option>
                                        {/foreach}
                                    </select>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="layui-row">
                        <div class="layui-col-xs8">
                            <div class="layui-form-item">
                                <label class="layui-form-label label-required">开户行</label>
                                <div class="layui-input-block">
                                    <input type="text" value="{$info.bank_open}" class="layui-input" name="bank_open">
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="layui-row">
                        <div class="layui-col-xs8">
                            <div class="layui-form-item">
                                <label class="layui-form-label label-required">银行户名</label>
                                <div class="layui-input-block">
                                    <input type="text" value="{$info.bank_account}" class="layui-input" name="bank_account"
                                           placeholder="未填写">
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="layui-row">
                        <div class="layui-col-xs8">
                            <div class="layui-form-item">
                                <label class="layui-form-label label-required">银行卡号</label>
                                <div class="layui-input-block">
                                    <input type="text" value="{$info.bank_number}" class="layui-input" name="bank_number">
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="layui-form-item layui-layout-admin">
            <div class="layui-input-block">
                <div class="layui-footer" style="left: 0;">
                    <a class="layui-btn" lay-filter="save" lay-submit formObj="#form">保存</a>
                </div>
            </div>
        </div>
    </form>
</div>
</body>
{include file="public/footer" /}
</html>